import { Controller, Inject, Post, Body} from '@midwayjs/core';
import { WristbandHistoryService } from '@service/firmware/wristband_history.service';
import { WristbandHistory } from '@entity/firmware/wristband_history.entity';

@Controller('/wristband_history')
export class WristbandHistoryController {
  @Inject()
  wristbandHistoryService: WristbandHistoryService;

  @Post('/save')
  async create(@Body() data: Partial<WristbandHistory>) {
    return this.wristbandHistoryService.createHistory(data);
  }
}
